{subtemplate common/header}
<div id="pt" class="wp">
	<a href="index.php" class="nvhm">$_G[setting][bbname]</a> &rsaquo;
	<a href="$_G[setting][navs][4][filename]">$_G[setting][navs][4][navname]</a> &rsaquo; 
	<a href="home.php?mod=magic">{lang magics_index}</a>
</div>
<div id="ct" class="wp cl">
	<div class="mn">
		<div class="ch">
			<label class="wx"><a href="$_G[setting][navs][4][filename]">$_G[setting][navs][4][navname]</a></label>
		</div>
		<div class="bm">
			<h1 class="mt"><img alt="magic" src="{STATICURL}image/feed/magic.gif" alt="task" class="vm" /> {lang magics_title}</h1>
			<ul class="tb cl">
				<!--{if $_G['group']['allowmagics']}--><li$actives[shop]><a href="home.php?mod=magic&action=shop">{lang magics_shop}</a></li><!--{/if}-->
				<li$actives[mybox]><a href="home.php?mod=magic&action=mybox">{lang magics_user}</a></li>
				<li$actives[log]><a href="home.php?mod=magic&action=log&operation=uselog">{lang magics_log}</a></li>
			</ul>
			<!--{if !$_G['setting']['magicstatus'] && $_G['adminid'] == 1}-->
				<div class="channelinfo">{lang magics_tips}</div>
			<!--{/if}-->

			<!--{if $action == 'shop'}-->
				{subtemplate home/space_magic_shop}
			<!--{elseif $action == 'mybox'}-->
				{subtemplate home/space_magic_mybox}
			<!--{elseif $action == 'log'}-->
				{subtemplate home/space_magic_log}
			<!--{/if}-->
		</div>
	</div>
	<div class="sd">
		{subtemplate common/userabout}
	</div>
</div>
{subtemplate common/footer}